#ifndef EXPORTREFM_H
#define EXPORTREFM_H

#include <QObject>
#include "tinyxml2.h"
#include "classmate.h"
#include <QRunnable>

class exportRefm : public QObject,public QRunnable
{
    Q_OBJECT
public:
    explicit exportRefm(QObject *parent = nullptr);
    void setClassMateList(const ClassMate &aFile);

protected:
    void run();
signals:
    void end();
    void idle();
public slots:

private:
    tinyxml2::XMLDocument doc;
    tinyxml2::XMLElement *root;
    QList<ClassMate> classMateList;

    int create();
};

#endif // EXPORTREFM_H
